﻿﻿<html><!-- InstanceBegin template="/Templates/Simple_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico">
<link href="css/common.css" rel="stylesheet" type="text/css">
<script src="js/prototype.js"></script>
<script src="js/common.js"></script>
<!-- InstanceBeginEditable name="doctitle" -->
<title>TCedit 测试用例编写工具</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script src="js/md5.js"></script>
<script>
if(self.location!=top.location) {
	window.parent.location.href=this.location;
}

function doLogin() {
	if($F("username")=="") {
		alert("请输入用户名！");
		return false;
	}
	if($F("password0")=="") {
		alert("请输入口令！");
		return false;
	}
	$("username").value=$F("username").toLowerCase();
	$("password").value=hex_md5("rslai.OrG_" + $F("password0") + "_rslai.OrG");

	setCookie("chooseViewURL", document.getElementById("chooseView").value); // 设置登录后显示页面
	return true;
}
</script>
<!-- InstanceEndEditable -->
</head>

<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="31%" height="100%"></td>
    <td width="37%">
      <table width="100%" height="10%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="100%" height="40%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>
            <table width="100%" border="0" align="center">
              <tr>
                <td colspan="2">
                  <img src="/images/logo.jpg" border="0"><strong><font size="+2">TCedit 测试用例编写工具</font>
                </td>
              </tr>
              <tr>
                <td colspan="2" bgcolor="#dedeef"><b>用户登录：</b></td>
              </tr>
              <tr>
                <td></td>
                <td>
                  <script>
                    var err=getParam("error");
                    var msg="$!{message}";
                    if(err!=null && msg!="") {
                      document.write("错误：<font color='#FF0000'>$!{message}</font>");
                    }
                  </script>
                </td>
              </tr>
              <form method="post" action="j_spring_security_check" name="loginForm" id="loginForm" method="post" onSubmit="return doLogin();">
              <tr>
                <td align="right">用户名：</td>
                <td><input name="j_username" type="text" id="username" style="width:200px;" maxlength="20" /></td>
              </tr>
              <tr>
                <td align="right">口令：</td>
                <td><input name="password0" type="password" id="password0" maxlength="20" style="width:200px;" /></td>
              </tr>
              <tr>
                <td align="right">选择视图：</td>
                <td>
                  <select style="width:50%;" name="chooseView" id="chooseView">
                    <option value ="/selectProductVersion.jspx?url=/testCaseMgt/testCaseMgt.html">测试用例管理</option>
                    <option value ="/testPlanExecute.jspx">测试计划执行</option>
                    <option value ="/selectProductVersion.jspx?url=/systemMgt.html">产品设置</option>
                    <option value ="/systemMgt.html">系统设置</option>
                  </select>
                </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input name="j_remember_me" type="checkbox" id="remember" value="true" />记住我的口令</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                  <input name="j_password" type="hidden" id="password" />
          	      <input name="url" type="hidden" id="url" />
                  <input name="SubmitLogin" type="submit" class="button" id="SubmitLogin" value="登录" />          </td>
              </tr>
              </form>
            </table>
<script>
	var _url=getParam("url");
	if(_url==null)
		_url="listBooks.jspx";
	$("url").value=_url;
</script>
          </td>
        </tr>
      </table>
      <table width="100%" height="50%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
    </td>
    <td width="32%"></td>
  </tr>
  <tr>
    <td colspan="3" height="1px" align="center"><hr width="98%" size="1" noshade></td>
  </tr>
  <tr>
    <td colspan="3" height="1" align="center">版权所有&copy;2011，保留所有权利 [<a href="/downloads/cs/index.html" target="_blank">客户端下载</a>]</td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
